-
Notifications
You must be signed in to change notification settings - Fork 899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move IsoDatastore from core #22239
Move IsoDatastore from core #22239
Conversation
Lets keep in mind that our view layer has trouble looking up these relationships if it is not defined in the base class that is used for the query. meaning that after this change: ExtManagementSystem.includes(:iso_datastore).all # fails
RedHat::Ovirt::ExtManagementSystem.includes(:iso_datastore).all # succeeds Any views that are based upon EMS will no longer be able to display this data, even if only OVirt providers are displayed. But that may not be a real use case and we may only be viewing these fields from an OVirt provider. UPDATE: I am excited for this change. |
8ee7e78
to
df2b301
Compare
df2b301
to
4721129
Compare
@@ -1,5 +1,5 @@ | |||
class IsoImage < ApplicationRecord | |||
belongs_to :iso_datastore | |||
belongs_to :storage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this because it opens us up to creating these from other provider storage types like VMware when we do a datastore ssa. This would make it a lot simpler to get a list of ISOs when doing vm reconfigure to connect a cdrom or provision from an ISO
@nasark can you double check that there are no more references to manageiq/app/models/ext_management_system.rb Lines 995 to 998 in d178e29
|
d178e29
to
7117e9a
Compare
may also want to grep for found
and noticed (but not sure the ramifications) supports_not :create_iso_datastore |
Good catch @kbrock I think we'll want |
7117e9a
to
98977e0
Compare
Checked commits nasark/manageiq@d7081e7~...98977e0 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
iso_images -> storage
relationshipDepends on:
@miq-bot add_labels pluggability/providers, technical debt, enhancement
@miq-bot assign @agrare